package com.zx.service;

import com.zx.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @author ZX
 * @date 2021/4/14
 */
@Service
public class UserService
{



    public User login(User user){

        //写死  测试jwt  DAO查询省略

        if (!StringUtils.isEmpty(user.getId())){
            user.setId("1");
            user.setName("zhangsan");
        }

        return  user;

    }
}
